package cn.hqc.system.mapper;


import cn.hqc.basic.mapper.BaseMapper;
import cn.hqc.system.domain.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author itsource
 * @since 2023-05-11
 */
public interface PermissionMapper extends BaseMapper<Permission> {

    Permission findBySn(String permissionSn);

    void addMiddle(@Param("roleId") Long id, @Param("per") List<Long> permissions);

    void deleteMiddle(Long roleId);

    List<String> findByLogininfoId(Long logininfoId);
}
